﻿@model GameSchool.Models.Game

<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Skrá leik</legend>
                
        <div class="editor-label">
            @Html.Label("Nafn")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.Label("Lýsing leiks")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
            @Html.Label("Hámarksfjöldi nemenda")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaxUser)
            @Html.ValidationMessageFor(model => model.MaxUser)
        </div>

        <div class="editor-label">
            @Html.Label("Kennara ID")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TeacherID)
            @Html.ValidationMessageFor(model => model.TeacherID)
        </div>

        <p>
            <input type="submit" value="Vista" />
        </p>
    </fieldset>
}
<!--<div>
    @Html.ActionLink("Back to List", "Index")
</div>-->

